﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GTA.BusinessEntity.UserManagement
{
    public class Profiler
    {
        public Int32 ID { get; set; }
        public String Description { get; set; }
        public List<Functionality> FunctionalityList { get; set; }

        public static Profiler Master = new Profiler() { ID = 1, Description = "Master" };
        public static Profiler User = new Profiler() { ID = 2, Description = "User" };
        public static Profiler External = new Profiler() { ID = 3, Description = "Externo" };

        public static List<Profiler> GetAll()
        {
            List<Profiler> list = new List<Profiler>();
            list.Add(Master);
            list.Add(User);
            list.Add(External);
            return list;
        }
        public static Profiler GetOne(Int32 id)
        {
            return GetAll().Find(it => it.ID.CompareTo(id) == 0);
        }
    }
}
